package net.chenlin.dp.modules.business.service.impl;

import lombok.extern.slf4j.Slf4j;
import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.common.entity.Query;
import net.chenlin.dp.modules.business.dao.ImportFileMapper;
import net.chenlin.dp.modules.business.entity.vo.file.FileListVo;
import net.chenlin.dp.modules.business.service.ImportFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author Yangsm
 * @ClassName: ImportFileServiceImpl
 * @Description: TODO
 * @date 2023年05月08日 22:27
 */
@Service
@Slf4j
public class ImportFileServiceImpl implements ImportFileService {

    @Autowired
    private ImportFileMapper importFileMapper;

    @Override
    public Page<FileListVo> getImportFileList(Map<String, Object> params) {
        Query query = new Query(params);
        Page<FileListVo> page = new Page<>(query);
        List<FileListVo> list =  importFileMapper.getImportFileList(page, query);
        return page;
    }
}
